package com.binhai.common;

import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;

public abstract class AbstractController<T> {
    @RequestMapping("/selectAllInfos.do")
    public abstract List<T> selectAllInfos();

    @RequestMapping("/saveOrUpdateInfo.do")
    public abstract Map saveOrUpdateInfo(T t);

    @RequestMapping("/deleteInfo.do")
    public abstract Map deleteInfo(int id);

    @RequestMapping("/getInfoById.do")
    public abstract T getInfoById(int id);

    @RequestMapping("/selectInfosByWhere.do")
    public abstract List<T>  selectInfosByWhere(T t);
}
